package com.etung.iot.demo.handler;

import com.etung.iot.demo.configs.TopicConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Handler(TopicConfig.DOWNLOAD_TOPIC)
@Slf4j
public class DownloadHandler implements TopicHandler{
    @Override
    public void handler(String topic,String payload) {
        log.info("payload:"+payload);
    }
}
